package com.school_admin.mapper;

import com.school_admin.entity.Feedback;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;


@Mapper
public interface FeedbackMapper extends BaseMapper<Feedback> {
    @MapKey("id")
    List<Map<String,Object>> getList(int start, Integer pageSize);
    Integer  getCount();
    @MapKey("id")
    List<Map<String, Object>> getUserFeedBackList(int start, Integer pageSize, String uid);
    Integer getUserFeedBackCount(String uid);
    @MapKey("id")
    List<Map> find(int id);
    @Update("update sc_feedback set udeleted = 1 where id = #{id}")
    boolean deleteUser(Integer id);
}
